/**	 
 * 	 
 */
package com.bbx.api.sdk.net.passeger.conn;

import java.io.InputStream;

import android.content.Context;

import com.bbx.api.sdk.model.passanger.CancelOrder;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.GeneralParser;

/**
 * 取消订单
 */
public class CancelOrderNet extends BaseNetwork {
	
	public CancelOrderNet(Context context, String datas) {
		super(context, false);
		setData(datas);
	}
	public CancelOrderNet(Context context) {
		super(context, false);
	}
    public void setData(String datas){
    	super.setData(datas);
    	url = ORDER_CANCEL_Url;
		InputStream inputStream = getContentWithPOST((datas));
		if (inputStream != null) {
			parser = new GeneralParser(context, inputStream);
		}
    }
	@Override
	public Object getData() {
		return parser.getData(CancelOrder.class);
	}

}
